home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / NT / CODE / CHAP12 / PALETTEDEMO / PALETTEDEMO.H < prev    next >
C/C++ Source or Header  |  1996-04-05  |  696b  |  33 lines

  1. //***********************************************************************
  2. //
  3. //  PaletteDemo.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CMyApp : public CWinApp
  8. {
  9. public:
  10.     virtual BOOL InitInstance ();
  11. };
  12.  
  13. class CMainWindow : public CFrameWnd
  14. {
  15. private:
  16.     CPalette m_palette;
  17.  
  18.     void DoGradientFill (CDC*, CRect*);
  19.     void DoDrawText (CDC*, CRect*);
  20.  
  21. public:
  22.     CMainWindow ();
  23.  
  24. protected:
  25.     afx_msg int OnCreate (LPCREATESTRUCT);
  26.     afx_msg BOOL OnEraseBkgnd (CDC*);
  27.     afx_msg void OnPaint ();
  28.     afx_msg BOOL OnQueryNewPalette ();
  29.     afx_msg void OnPaletteChanged (CWnd*);
  30.  
  31.     DECLARE_MESSAGE_MAP ()
  32. };
  33.